/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jul.giftmanager.ui;

import com.jul.giftmanager.impl.PersonImpl;
import com.jul.giftmanager.obj.Gender;
import com.jul.giftmanager.obj.Person;
import com.jul.giftmanager.obj.Relation;
import com.jul.giftmanager.ui.view.ViewFriendsPanel;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.JPanel;

/**
 *
 * @author user
 */
public class EntryPoint
{
    public static void main(String[] args)
    {
        BasicFrame mainFrame = new BasicFrame();
        ViewFriendsPanel friendsPanel = new ViewFriendsPanel();
        mainFrame.setContent(friendsPanel);
    
    List<Person> persons = new ArrayList<>();
        PersonImpl personImpl = new PersonImpl("Test", new Date(), Gender.MALE, Relation.CLOSE_FRIEND);
        PersonImpl personImpl1 = new PersonImpl("Test1", new Date(), Gender.MALE, Relation.COLLEGUE);
        PersonImpl personImpl2 = new PersonImpl("Test2", new Date(), Gender.MALE, Relation.ITS_COMPLICATED);
        PersonImpl personImpl3 = new PersonImpl("Test3", new Date(), Gender.MALE, Relation.LOVER);
        PersonImpl personImpl4 = new PersonImpl("Test4", new Date(), Gender.MALE, Relation.RELATIVE_FAMILY);
        PersonImpl personImpl5 = new PersonImpl("Test5", new Date(), Gender.MALE, Relation.PAL);
        PersonImpl personImpl6 = new PersonImpl("Test6", new Date(), Gender.MALE, Relation.COLLEGUE);
        persons.add(personImpl);
        persons.add(personImpl1);
        persons.add(personImpl2);
        persons.add(personImpl3);
        persons.add(personImpl4);
        persons.add(personImpl5);
        persons.add(personImpl6);
    
        friendsPanel.setFriendsList(persons);
        mainFrame.showFrame();
    }
}
